package com.wisdytech.common.bean.event;

import java.util.List;

import org.springframework.context.ApplicationEvent;

import com.wisdytech.common.enums.ActionType;

/**
 * 设备事件
 * @author dlb
 *
 */
public class EquipEvent extends ApplicationEvent{
	/**
	 * 
	 */
	private static final long serialVersionUID = 3614757726030323344L;
	
	/**设备增删改事件**/
	private ActionType type;
	/**设备id*/
	private List<String> equipIds;
	
	/**处理的用户 username*/
	private String dealUser;
	
	/**原设备编码*/
	private List<String> equipCode;
	
	

	public EquipEvent(Object source,List<String> equipIds ,ActionType type) {
		super(source);
		this.type =type;
		this.equipIds=equipIds;
	}
	
	public EquipEvent(Object source, List<String> equipIds, List<String> equipCode, ActionType type) {
		super(source);
		this.type = type;
		this.equipIds = equipIds;
		this.equipCode = equipCode;
	}


	public String getDealUser() {
		return dealUser;
	}

	public void setDealUser(String dealUser) {
		this.dealUser = dealUser;
	}

	public ActionType getType() {
		return type;
	}

	public void setType(ActionType type) {
		this.type = type;
	}

	public List<String> getEquipIds() {
		return equipIds;
	}

	public void setEquipIds(List<String> equipIds) {
		this.equipIds = equipIds;
	}

	public List<String> getEquipCode() {
		return equipCode;
	}

	public void setEquipCode(List<String> equipCode) {
		this.equipCode = equipCode;
	}
	
	

	
	

}
